<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Iniuriam: /home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/stock.c File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Iniuriam
   &#160;<span id="projectnumber">alpha 1</span>
   </div>
   <div id="projectbrief"> RPG futuriste</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">/home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/stock.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="stock_8h_source.html">stock.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="stock_8c.html#acd1f7ee090a3a6542ba5f1ba10a701af">stockInit</a> (<a class="el" href="structStock.html">Stock</a> *st, <a class="el" href="structObjet.html">Objet</a> *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : st n'a pas déjà été initialisé, obj est initialisé <br/>
 Postconditions : st est initialisé avec l'objet obj.  <a href="#acd1f7ee090a3a6542ba5f1ba10a701af"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="stock_8c.html#a50efe29dcdc67747fa933707e6c4ad5a">stockLibere</a> (<a class="el" href="structStock.html">Stock</a> *st)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : st est initialisé <br/>
 Postconditions : st est libéré avec une quantite nulle.  <a href="#a50efe29dcdc67747fa933707e6c4ad5a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="stock_8c.html#a0634aa017ef72d0391347b270d299bc1">incrementerStock</a> (<a class="el" href="structStock.html">Stock</a> *st, const int n)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : st est initialisé <br/>
 Postconditions : la quantité d'objets dans st est augmentée de n.  <a href="#a0634aa017ef72d0391347b270d299bc1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structObjet.html">Objet</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="stock_8c.html#a8600d78e30dde50b7758ed25f8b0df1e">getStockObjet</a> (const <a class="el" href="structStock.html">Stock</a> *st)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : st est initialisé <br/>
 Postconditions : retourne l'adresse de l'objet enregistré dans st.  <a href="#a8600d78e30dde50b7758ed25f8b0df1e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="stock_8c.html#a66fefcf497800e5ccb12be0b01cfe268">getStockQuantite</a> (const <a class="el" href="structStock.html">Stock</a> *stock)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : st est initialisé <br/>
 Postconditions : retourne la quantite d'objet de st.  <a href="#a66fefcf497800e5ccb12be0b01cfe268"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="stock_8c.html#a2818bbe140e68e701d868b9a32b8e372">setStockObjet</a> (<a class="el" href="structStock.html">Stock</a> *st, <a class="el" href="structObjet.html">Objet</a> *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : st et obj sont initialisés <br/>
 Postconditions : initialise l'objet de st.  <a href="#a2818bbe140e68e701d868b9a32b8e372"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="stock_8c.html#a1ddd1b1b26a3ef93817d9c9bd7b99f86">copieStock</a> (<a class="el" href="structStock.html">Stock</a> *st1, const <a class="el" href="structStock.html">Stock</a> *st2)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : st2 est initialisé, pas st1 <br/>
 Postconditions : copie st2 dans st1.  <a href="#a1ddd1b1b26a3ef93817d9c9bd7b99f86"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="stock_8c.html#ab238d4094d7806aafd90b98800bcc8e8">mainStock</a> ()</td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a1ddd1b1b26a3ef93817d9c9bd7b99f86"></a><!-- doxytag: member="stock.c::copieStock" ref="a1ddd1b1b26a3ef93817d9c9bd7b99f86" args="(Stock *st1, const Stock *st2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="stock_8h.html#a1ddd1b1b26a3ef93817d9c9bd7b99f86">copieStock</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structStock.html">Stock</a> *&#160;</td>
          <td class="paramname"><em>st1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structStock.html">Stock</a> *&#160;</td>
          <td class="paramname"><em>st2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : st2 est initialisé, pas st1 <br/>
 Postconditions : copie st2 dans st1. </p>

</div>
</div>
<a class="anchor" id="a8600d78e30dde50b7758ed25f8b0df1e"></a><!-- doxytag: member="stock.c::getStockObjet" ref="a8600d78e30dde50b7758ed25f8b0df1e" args="(const Stock *st)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structObjet.html">Objet</a>* <a class="el" href="stock_8h.html#a8600d78e30dde50b7758ed25f8b0df1e">getStockObjet</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structStock.html">Stock</a> *&#160;</td>
          <td class="paramname"><em>st</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : st est initialisé <br/>
 Postconditions : retourne l'adresse de l'objet enregistré dans st. </p>

</div>
</div>
<a class="anchor" id="a66fefcf497800e5ccb12be0b01cfe268"></a><!-- doxytag: member="stock.c::getStockQuantite" ref="a66fefcf497800e5ccb12be0b01cfe268" args="(const Stock *stock)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="stock_8h.html#a66fefcf497800e5ccb12be0b01cfe268">getStockQuantite</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structStock.html">Stock</a> *&#160;</td>
          <td class="paramname"><em>stock</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : st est initialisé <br/>
 Postconditions : retourne la quantite d'objet de st. </p>

</div>
</div>
<a class="anchor" id="a0634aa017ef72d0391347b270d299bc1"></a><!-- doxytag: member="stock.c::incrementerStock" ref="a0634aa017ef72d0391347b270d299bc1" args="(Stock *st, const int n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="stock_8h.html#a0634aa017ef72d0391347b270d299bc1">incrementerStock</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structStock.html">Stock</a> *&#160;</td>
          <td class="paramname"><em>st</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : st est initialisé <br/>
 Postconditions : la quantité d'objets dans st est augmentée de n. </p>

</div>
</div>
<a class="anchor" id="ab238d4094d7806aafd90b98800bcc8e8"></a><!-- doxytag: member="stock.c::mainStock" ref="ab238d4094d7806aafd90b98800bcc8e8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="stock_8c.html#ab238d4094d7806aafd90b98800bcc8e8">mainStock</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2818bbe140e68e701d868b9a32b8e372"></a><!-- doxytag: member="stock.c::setStockObjet" ref="a2818bbe140e68e701d868b9a32b8e372" args="(Stock *st, Objet *obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="stock_8h.html#a2818bbe140e68e701d868b9a32b8e372">setStockObjet</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structStock.html">Stock</a> *&#160;</td>
          <td class="paramname"><em>st</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : st et obj sont initialisés <br/>
 Postconditions : initialise l'objet de st. </p>

</div>
</div>
<a class="anchor" id="acd1f7ee090a3a6542ba5f1ba10a701af"></a><!-- doxytag: member="stock.c::stockInit" ref="acd1f7ee090a3a6542ba5f1ba10a701af" args="(Stock *st, Objet *obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="stock_8h.html#acd1f7ee090a3a6542ba5f1ba10a701af">stockInit</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structStock.html">Stock</a> *&#160;</td>
          <td class="paramname"><em>st</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : st n'a pas déjà été initialisé, obj est initialisé <br/>
 Postconditions : st est initialisé avec l'objet obj. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>RODARIE Dimitri, VERSAEVEL Romain, FLORES Isabelle </dd></dl>

</div>
</div>
<a class="anchor" id="a50efe29dcdc67747fa933707e6c4ad5a"></a><!-- doxytag: member="stock.c::stockLibere" ref="a50efe29dcdc67747fa933707e6c4ad5a" args="(Stock *st)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="stock_8h.html#a50efe29dcdc67747fa933707e6c4ad5a">stockLibere</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structStock.html">Stock</a> *&#160;</td>
          <td class="paramname"><em>st</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : st est initialisé <br/>
 Postconditions : st est libéré avec une quantite nulle. </p>

</div>
</div>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 4 2013 08:45:33 for Iniuriam by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
